All Questions
6 questions
4votes
2answers
4kviews
Angular ng-repeat with custom directive
I'm having difficulty with the data from my controller scope being passed into a custom directive. The ng-repeat give me the correct number of elements, it's just not loading in the template or ...
0votes
3answers
13kviews
AngularJS - How to pass html attribute variable value to directive?
... ... UPDATE HTML <my-directive ng-repeat="item in items = ( data | filter: {isExists: true})"> something </my-directive> <my-second-directive counter="{{items.length}}"><...
4votes
2answers
1kviews
directive can not ''require:ngRepeat'
I write below directive to make call a function when ngRepeat element gets rendered on UI. Directive directives.directive('repeatDone', function() { return { restrict: 'A', ...
0votes
1answer
125views
angularjs ng-repeat doesn't populate value for the directive
Not sure if this question is already answered, but couldn't find anything on google. Couldn't get myDirective to get item-data correctly, It always gets item.Data as the value. <div class="items"...
2votes
1answer
8kviews
Pass array object from controller to custom directive in AngularJS
Im trying to pass a array of objects from a angular controller to a custom directive element and iterate the object with ng-repeat, but appears the following error: [ngRepeat:dupes] home.js: home....
4votes
2answers
2kviews
How do I prerender variable in angular directive for ng-repeat?
I try to create reusable directive something like grid. I want to define data and actions (edit, delete,...) in controller. app.controller('MainCtrl', function($scope) { $scope.data = [ {...